# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=firefox-decrypt
_pkgname=firefox_decrypt
pkgver=1.1.1.r24.g7aad315
pkgrel=1
pkgdesc='Extract passwords from Mozilla Firefox, Waterfox, Thunderbird, SeaMonkey profiles.'
arch=('any')
groups=('blackarch' 'blackarch-forensic')
url='https://github.com/unode/firefox_decrypt'
license=('GPL3')
depends=('python' 'python-pysqlite3' 'nss')
makedepends=('git')
source=("git+https://github.com/unode/$_pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $_pkgname

  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

package() {
  cd "$_pkgname"

  install -Dm 755 "$_pkgname.py" "$pkgdir/usr/bin/$pkgname"

  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md
}

